const express = require('express')
const app = express()
const port = 1254

const user = {
  name: "摸鱼的春哥",
  blogUrl: "https://juejin.cn/user/1714893870865303"
}

app.get('/', (req, res) => {
  res.setHeader('Content-Disposition', 'inline')
  // res.setHeader('Content-Disposition', 'attachment; filename="chunge.json"')
  // res.setHeader('Content-Disposition', 'attachment')

  res.send(user)
})

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})